package com.grass.p019lv.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import com.androidsa.bttsddka.R;
import com.androidx.p013lv.base.bean.VideoBean;
import com.grass.p019lv.activity.VideoPlayActivity;
import com.grass.p019lv.generated.callback.OnClickListener;

/* renamed from: com.grass.lv.databinding.VideoPlayerBuyLeaseLayoutBindingImpl */
public class VideoPlayerBuyLeaseLayoutBindingImpl extends VideoPlayerBuyLeaseLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback69;
    private final View.OnClickListener mCallback70;
    private final View.OnClickListener mCallback71;
    private final View.OnClickListener mCallback72;
    private final View.OnClickListener mCallback73;
    private long mDirtyFlags;
    private final LinearLayout mboundView0;
    private final TextView mboundView2;
    private final TextView mboundView3;
    private final LinearLayout mboundView4;
    private final TextView mboundView5;
    private final LinearLayout mboundView6;
    private final TextView mboundView7;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(R.id.buy_txt_ll, 8);
    }

    public VideoPlayerBuyLeaseLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 9, sIncludes, sViewsWithIds));
    }

    private VideoPlayerBuyLeaseLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 1, (TextView) objArr[1], (LinearLayout) objArr[8]);
        this.mDirtyFlags = -1;
        this.buyBack.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.mboundView0 = linearLayout;
        linearLayout.setTag(null);
        TextView textView = (TextView) objArr[2];
        this.mboundView2 = textView;
        textView.setTag(null);
        TextView textView2 = (TextView) objArr[3];
        this.mboundView3 = textView2;
        textView2.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[4];
        this.mboundView4 = linearLayout2;
        linearLayout2.setTag(null);
        TextView textView3 = (TextView) objArr[5];
        this.mboundView5 = textView3;
        textView3.setTag(null);
        LinearLayout linearLayout3 = (LinearLayout) objArr[6];
        this.mboundView6 = linearLayout3;
        linearLayout3.setTag(null);
        TextView textView4 = (TextView) objArr[7];
        this.mboundView7 = textView4;
        textView4.setTag(null);
        setRootTag(view);
        this.mCallback69 = new OnClickListener(this, 1);
        this.mCallback72 = new OnClickListener(this, 4);
        this.mCallback70 = new OnClickListener(this, 2);
        this.mCallback73 = new OnClickListener(this, 5);
        this.mCallback71 = new OnClickListener(this, 3);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 128;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (170 == i) {
            setStatus((Integer) obj);
        } else if (196 == i) {
            setVideoBean((VideoBean) obj);
        } else if (83 == i) {
            setHeight((Integer) obj);
        } else if (34 != i) {
            return false;
        } else {
            setClick((VideoPlayActivity.OnClick) obj);
        }
        return true;
    }

    @Override // com.grass.p019lv.databinding.VideoPlayerBuyLeaseLayoutBinding
    public void setStatus(Integer num) {
        this.mStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(170);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.VideoPlayerBuyLeaseLayoutBinding
    public void setVideoBean(VideoBean videoBean) {
        updateRegistration(0, videoBean);
        this.mVideoBean = videoBean;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(196);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.VideoPlayerBuyLeaseLayoutBinding
    public void setHeight(Integer num) {
        this.mHeight = num;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(83);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.VideoPlayerBuyLeaseLayoutBinding
    public void setClick(VideoPlayActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 8;
        }
        notifyPropertyChanged(34);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        if (i != 0) {
            return false;
        }
        return onChangeVideoBean((VideoBean) obj, i2);
    }

    private boolean onChangeVideoBean(VideoBean videoBean, int i) {
        if (i == 0) {
            synchronized (this) {
                this.mDirtyFlags |= 1;
            }
            return true;
        } else if (i == 101) {
            synchronized (this) {
                this.mDirtyFlags |= 16;
            }
            return true;
        } else if (i == 103) {
            synchronized (this) {
                this.mDirtyFlags |= 32;
            }
            return true;
        } else if (i != 142) {
            return false;
        } else {
            synchronized (this) {
                this.mDirtyFlags |= 64;
            }
            return true;
        }
    }

    /* access modifiers changed from: protected */
    /* JADX WARNING: Removed duplicated region for block: B:22:0x0047  */
    /* JADX WARNING: Removed duplicated region for block: B:43:0x0086  */
    /* JADX WARNING: Removed duplicated region for block: B:46:0x0092  */
    /* JADX WARNING: Removed duplicated region for block: B:49:0x009e  */
    /* JADX WARNING: Removed duplicated region for block: B:52:0x00c6  */
    /* JADX WARNING: Removed duplicated region for block: B:55:0x00cf  */
    /* JADX WARNING: Removed duplicated region for block: B:58:0x00da  */
    /* JADX WARNING: Removed duplicated region for block: B:61:0x00e5  */
    /* JADX WARNING: Removed duplicated region for block: B:64:0x00f1  */
    /* JADX WARNING: Removed duplicated region for block: B:69:? A[RETURN, SYNTHETIC] */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        int i;
        String str;
        String str2;
        String str3;
        long j2;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mStatus;
        VideoBean videoBean = this.mVideoBean;
        Integer num2 = this.mHeight;
        VideoPlayActivity.OnClick onClick = this.mClick;
        long j3 = j & 130;
        int i2 = 0;
        if (j3 != 0) {
            boolean z = ViewDataBinding.safeUnbox(num) == 2;
            if (j3 != 0) {
                j |= z ? 512 : 256;
            }
            if (!z) {
                i = 8;
                String str4 = null;
                if ((241 & j) == 0) {
                    if ((j & 161) != 0) {
                        str2 = String.valueOf(videoBean != null ? videoBean.getLeasePrice() : 0);
                    } else {
                        str2 = null;
                    }
                    if ((j & 145) != 0) {
                        str = String.valueOf(videoBean != null ? videoBean.getLeaseDays() : 0);
                    } else {
                        str = null;
                    }
                    if ((j & 193) != 0) {
                        str4 = String.valueOf(videoBean != null ? videoBean.getPrice() : 0);
                    }
                    str3 = str4;
                } else {
                    str3 = null;
                    str2 = null;
                    str = null;
                }
                j2 = j & 132;
                if (j2 != 0) {
                    i2 = ViewDataBinding.safeUnbox(num2);
                }
                if ((j & 128) != 0) {
                    this.buyBack.setOnClickListener(this.mCallback70);
                    this.mboundView0.setOnClickListener(this.mCallback69);
                    this.mboundView3.setOnClickListener(this.mCallback71);
                    this.mboundView4.setOnClickListener(this.mCallback72);
                    this.mboundView6.setOnClickListener(this.mCallback73);
                }
                if ((130 & j) != 0) {
                    this.mboundView0.setVisibility(i);
                }
                if (j2 != 0) {
                    VideoPlayActivity.setViewHeight(this.mboundView0, i2);
                }
                if ((j & 145) != 0) {
                    TextViewBindingAdapter.setText(this.mboundView2, str);
                }
                if ((j & 161) != 0) {
                    TextViewBindingAdapter.setText(this.mboundView5, str2);
                }
                if ((j & 193) == 0) {
                    TextViewBindingAdapter.setText(this.mboundView7, str3);
                    return;
                }
                return;
            }
        }
        i = 0;
        String str42 = null;
        if ((241 & j) == 0) {
        }
        j2 = j & 132;
        if (j2 != 0) {
        }
        if ((j & 128) != 0) {
        }
        if ((130 & j) != 0) {
        }
        if (j2 != 0) {
        }
        if ((j & 145) != 0) {
        }
        if ((j & 161) != 0) {
        }
        if ((j & 193) == 0) {
        }
    }

    @Override // com.grass.p019lv.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            VideoPlayActivity.OnClick onClick = this.mClick;
            if (onClick != null) {
                z = true;
            }
            if (z) {
                onClick.emptyClick();
            }
        } else if (i == 2) {
            VideoPlayActivity.OnClick onClick2 = this.mClick;
            if (onClick2 != null) {
                z = true;
            }
            if (z) {
                onClick2.btnBack();
            }
        } else if (i == 3) {
            VideoPlayActivity.OnClick onClick3 = this.mClick;
            if (onClick3 != null) {
                z = true;
            }
            if (z) {
                onClick3.buyVideo();
            }
        } else if (i == 4) {
            VideoPlayActivity.OnClick onClick4 = this.mClick;
            if (onClick4 != null) {
                z = true;
            }
            if (z) {
                onClick4.leaseVideo();
            }
        } else if (i == 5) {
            VideoPlayActivity.OnClick onClick5 = this.mClick;
            if (onClick5 != null) {
                z = true;
            }
            if (z) {
                onClick5.buyVideo();
            }
        }
    }
}
